{% extends "layout/main.html" %}
{% load i18n %}

{% block content %}
<h2>Health</h2>
<p id="set_parameters"><a href="/user/parameters/">{% trans "+ Set my parameters" %}</a></p>
<form action="." method="POST">
  {{ date_form.as_p }}
  {{ weight_form.as_p }}
<p>{% trans "Hearth rate at wake up:" %}</p>
  {{ cardiac_frequency_form.as_p }}
  <p><input type="submit" value="{% trans "add data" %}"/></p>
</form>
{% if weight_chart_url %}
<h3>{% trans "Weight" %}</h3>
<img src="{{ weight_chart_url }}" />
{% endif %}

{% if cardiac_frequency_chart_url %}
<h3>{% trans "Hearth rate at wake up" %}</h3>
<img src="{{ cardiac_frequency_chart_url }}" />
{% endif %}
{% endblock %}
